
<html>
    <head>
        <meta name="page-view-size" content="1280*720" />
    </head>
    <style type="text/css">
        table {
            width:100%;
        }
        td {
            border:solid 1px;
            width:25%;
        }
    </style>
    <script>
        function $(x)
        {
            return document.getElementById(x);
        }
        function getAuthInfo(x)
        {
            Authentication.CTCSetConfig("EncryptionType", $("type").value);
            return Authentication.CTCGetAuthInfo(x);
        }
        function start()
        {
            var ipaddr = iPanel.ioctlRead("IPAddr");
            var mac = iPanel.ioctlRead("MacAddr");
            var userid = iPanel.ioctlRead("UserID");
            var stbid = iPanel.ioctlRead("STBID");
            var pwd = iPanel.ioctlRead("Pwd");

            $("type").value = "<%TYPE%>";
            $("plain").value = "<%PLAIN%>";
            $("cipher").value = getAuthInfo($("plain").value);
            $("expect").value = "<%EXPECT%>";
            $("ip").value = ipaddr;
            $("mac").value = mac;
            $("uid").value = userid;
            $("sid").value = stbid;
            $("pwd").value = pwd;

            $("fm").submit();
        }
        function Load()
        {
            setTimeout("start();", 1000);
        }
    </script>

    <body onload="Load();">
        <center>
            <!--input type="button" value="start" onclick="start();"/-->
            <form action="index.html" method="GET" id="fm">
                <input type="hidden" name="type" id="type" value="" />
                <input type="hidden" name="plain" id="plain" value="" />
                <input type="hidden" name="cipher" id="cipher" value="" />
                <input type="hidden" name="expect" id="expect" value="" />
                <input type="hidden" name="ip" id="ip" value="" />
                <input type="hidden" name="mac" id="mac" value="" />
                <input type="hidden" name="uid" id="uid" value="" />
                <input type="hidden" name="sid" id="sid" value="" />
                <input type="hidden" name="pwd" id="pwd" value="" />
            </form>
            <table>
                <!--%TABLE%-->
            </table>
        </center>
    </body>
</html>

